<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:import url="/WEB-INF/jsp/header.jsp">
	<c:param name="title" value="accueil"/>
</c:import>

<header class="row-fluid">
            <div class="hero-unit span12">
                <h1>Carnet d'amis !</h1>
                <p>Un réseau social simple et efficace (et orange)</p>
            </div>
</header>
<div class="row-fluid">
            <div class="span8 bloc login-bloc">
                <div class="bloc-header">
                    <div class="bloc-header-inner">
                        <h1>Envis de nous rejoindre ? inscrivez vous:</h1>
                    </div>
                </div>
                <div class="bloc-corps">
                    <div class="bloc-inner">

                              <c:if test="${error != null}">
                                <div class="alert alert-error">
                                ${error}
                                </div>
                              </c:if>
                        <form action="inscription.htm" method="POST" class="form-horizontal">
                              <div class="control-group">
                                <label class="control-label" for="inputPrenom">Prénom</label>
                                <div class="controls">
                                  <input name="prenom" type="text" id="inputPrenom" placeholder="Prenom" value="${form.prenom}">
                                </div>
                              </div>
                              <div class="control-group">
                                <label class="control-label" for="inputNom">Nom</label>
                                <div class="controls">
                                  <input name="nom" type="text" id="inputNom" placeholder="Nom" value="${form.nom}">
                                </div>
                              </div>
                              <div class="control-group">
                                <label class="control-label" for="inputPseudo">Pseudo</label>
                                <div class="controls">
                                  <input name="pseudo" type="text" id="inputPseudo" placeholder="Pseudo" value="${form.pseudo}">
                                </div>
                              </div>
                              <div class="control-group">
                                <label class="control-label" for="inputEmail">Email</label>
                                <div class="controls">
                                  <input name="email" type="text" id="inputEmail" placeholder="Email" value="${form.email}">
                                </div>
                              </div>
                              <div class="control-group">
                                <label class="control-label" for="inputPassword">Password</label>
                                <div class="controls">
                                  <input name="password" type="password" id="inputPassword" placeholder="Password">
                                </div>
                              </div>
                              <div class="control-group">
                                <label class="control-label" for="inputPassword2">Répétez le password</label>
                                <div class="controls">
                                  <input name="password2" type="password" id="inputPassword2" placeholder="Le même password">
                                </div>
                              </div>
                              <div class="control-group">
                                <div class="controls">
                                  <button type="submit" class="btn btn-primary">S'inscrire</button>
                                </div>
                              </div>
                        </form>
                    </div>
                </div>
                <div class="bloc-footer">    
                    <div class="bloc-footer-inner">

                    </div>
                </div>
            </div>
    <div class="span4 bloc login-bloc">
                <div class="bloc-header">
                    <div class="bloc-header-inner">
                        <h1>Déjà inscrit ? connectez vous:</h1>
                    </div>
                </div>
                <div class="bloc-corps">
                    <div class="bloc-inner">

                              <c:if test="${login_error != null}">
                                <div class="alert alert-error">
                                ${login_error}
                                </div>
                              </c:if>
                        <form action="login.htm" method="POST" class="form-vertical">
                              <div class="control-group">
                                <label class="control-label" for="inputEmail">Email</label>
                                <div class="controls">
                                  <input name="email" type="text" id="inputEmail" placeholder="Email">
                                </div>
                              </div>
                              <div class="control-group">
                                <label class="control-label" for="inputPassword">Password</label>
                                <div class="controls">
                                  <input name="password" type="password" id="inputPassword" placeholder="Password">
                                </div>
                              </div>
                              <div class="control-group">
                                <div class="controls">
                                  <button type="submit" class="btn btn-primary">Se connecter</button>
                                </div>
                              </div>
                        </form>
                    </div>
                </div>
                <div class="bloc-footer">    
                    <div class="bloc-footer-inner">

                    </div>
                </div>
            </div>
        </div>

<c:import url="/WEB-INF/jsp/footer.jsp"/>